package com.jiukuaidao.zhulin.module.order.contract;

import com.jiukuaidao.library.base.IBasePresenter;
import com.jiukuaidao.library.base.IBaseView;
import com.jiukuaidao.zhulin.entity.ApiOrderCommentPost;
import com.jiukuaidao.zhulin.entity.ApiOrderDetailInfo;

/**
 * T_winds
 * Date:  16.8.18
 * Description:
 */
public interface OrderCommentContract {

    interface View extends IBaseView<Presenter>{

        /**
         * 设置订单ID
         * @param orderNo
         */
        void setOrderNo(String orderNo);

        /**
         * 获取订单ID
         * @return
         */
        String getOrderNo();

        /**
         * 获取订单详情 渲染
         * @param data
         */
        void getOrderDetailDataSuc(ApiOrderDetailInfo data);

        /**
         * 获取 订单详情
         * @return
         */
        ApiOrderDetailInfo getOrderInfo();

        void postCommentSuc();

        ApiOrderCommentPost getCommentPost();
    }

    interface Presenter extends IBasePresenter{

        void loadData();

        void postComment();
    }

}
